package huashu.net.complain.service;

import huashu.net.complain.databean.DeptCountDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import huashu.net.complain.dao.DeptCountDao;
import huashu.net.complain.entity.DeptCount;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.core.entity.BaseEntity;
import com.sirdc.modules.sys.base.StringPKService;

import java.util.List;

@Service
public class DeptCountService extends StringPKService<DeptCount> {

	@Autowired
	private DeptCountDao dao;

	@Override
	protected BaseDao  getDao() {
		// TODO Auto-generated method stub
		return dao;
	}
	
	//获取各个部门历年平均满意率
	public List<DeptCountDTO> getDeptSalary()
	{
		return  dao.getDeptSatify();
	}
	//获取各个部门总诉件量
	public List<DeptCountDTO> getdeptAmount()
	{

		return dao.getDeptAmount();
	}
	//各个部门及时回复率
	public List<DeptCountDTO>  getdeptResponseReate()
	{
		return dao.getDeptReponseRate();
	}

	//各个部门查阅率，满意率，回复率
	public List<DeptCountDTO> getYearRate(String deptname)
	{
		return dao.getYearRate(deptname);
	}

	public DeptCountDTO getDeptInfo(String deptname)
	{
		return dao.getdeptInfo(deptname);
	}
 }
